<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>部门管理系统登陆</title>
    <base href="<%=basePath%>">
    <link rel="stylesheet" type="text/css" href="lib/bootstrap/css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="stylesheets/theme.css">
    <link rel="stylesheet" href="lib/font-awesome/css/font-awesome.css">

    <script src="lib/jquery-1.7.2.min.js" type="text/javascript"></script>
	<script type="text/javascript">
	// 验证输入不为空的脚本代码
	function checkForm(form) {
		if (form.username.value == "") {
			alert("用户名不能为空!");
			form.username.focus();
			return false;
		}
		if (form.password.value == "") {
			alert("密码不能为空!");
			form.password.focus();
			return false;
		}
		return true;
	}
	</script>
    <!-- Demo page code -->

    <style type="text/css">
        #line-chart {
            height:300px;
            width:800px;
            margin: 0px auto;
            margin-top: 1em;
        }
        .brand { font-family: georgia, serif; }
        .brand .first {
            color: #ccc;
            font-style: italic;
        }
        .brand .second {
            color: #fff;
            font-weight: bold;
        }
    </style>

  </head>

  <body class=""> 
  <!--<![endif]-->
    
    <div class="navbar">
        <div class="navbar-inner">
                <ul class="nav pull-right">
                    
                </ul>
                <a class="brand" href="index.html"><span class="first">Your</span> <span class="second">Company</span></a>
        </div>
    </div>
    
    
    <div class="row-fluid">
    <div class="dialog">
		<form action="servlet/LoginServlet?mark=login" method="post" onsubmit="return checkForm(this);">
        <div class="block">
            <p class="block-heading">部门管理系统</p>		
            <div class="block-body">
                    <label>用户名</label>
                    <input type="text" name="username" id="username" class="span12">
                    <label>密码</label>
                    <input type="password" name="password" id="password" class="span12">
                    <input type="submit" class="btn btn-primary pull-right" value="登录"> 
                    <label class="remember-me"><input type="checkbox"> 记住我</label>
                    <div class="clearfix"></div>
            </div>
        </div>
		</form>
        <p><a href="reset-password.html">忘记了密码?</a></p>
    </div>
</div>
    
  </body>
</html>


